package controller

import (
	"context"
	"xr-game-server/core/httpserver"
	"xr-game-server/dto/authdto"
	"xr-game-server/module/auth"
)

type Auth struct {
}

func initAuth() {
	httpserver.RegAPI("/auth", new(Auth))
}

func (a *Auth) TestLogin(ctx context.Context, req *authdto.TestLoginReq) (resp *authdto.TestLoginRes, err error) {
	return auth.TestLogin(ctx, req)
}

func (a *Auth) Ban(ctx context.Context, req *authdto.BanReq) (resp *authdto.BanRes, e error) {
	return auth.Ban(ctx, req)
}

func (a *Auth) CMSLogin(ctx context.Context, req *authdto.CMSLoginReq) (res *authdto.CMSLoginRes, err error) {
	return auth.CMSLogin(ctx, req)
}

func (a *Auth) UnBan(ctx context.Context, req *authdto.UnBanReq) (bool, error) {
	return auth.UnBan(ctx, req)
}

func (s *Auth) PushAgainLoginReq(ctx context.Context, req *authdto.PushAgainLoginReq) (res *httpserver.PushResp, err error) {
	return nil, nil
}
